package com.sale.system.mapper;

import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.system.domain.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户与角色关联表 数据层
 *
 * @author Lion Li
 */
public interface SysUserRoleMapper extends BaseMapperPlus<SysUserRoleMapper, SysUserRole, SysUserRole> {

    List<Long> selectUserIdsByRoleId(Long roleId);

    /**
     * 通过角色id查出用户列表
     */
    List<Long> getUserList(@Param("roles") String[] roles);

}
